import 'package:flutter/material.dart';

class PageViewPage extends StatefulWidget {
  @override
  _PageViewPageState createState() => _PageViewPageState();
}

class _PageViewPageState extends State<PageViewPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('模板'),
      ),
      body: Center(
          child: PageView(
        pageSnapping: false,
        scrollDirection: Axis.vertical,
        children: [
          Container(
            color: Colors.blue,
          ),
          Container(
            color: Colors.yellow,
          )
        ],
      )),
    );
  }
}
